package com.city.semis.controller;

import com.alibaba.fastjson.JSONObject;
import com.city.semis.business.IRoleBusiness;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoleController {

   @Autowired
    private IRoleBusiness irb;

    @RequestMapping(value = "/common/role", method = RequestMethod.GET)
    @CrossOrigin("http://localhost:8080")
    public JSONObject getRoleList() throws Exception {
        return irb.getRoleList();
    }
}
